約 5,156,740 件
https://w.atwiki.jp/knowledgebase/pages/15.html
EntityFrameworkについて インストール EF5 バックエンドデータベース Code Firstプログラミング サンプルソース DbContext エンティティクラス 型 日付(DateTime) 複合型フィールド 外部関連 モデルの階層化(TPT) 属性 データベースの設定 エンティティの使い方 エンティティの追加 エンティティの削除 LINQを使ったエンティティの検索方法 エンティティのキーから検索 ジェネリックな方法でプロパティにアクセス 関連 関連エンティティの積極的読み込み 関連エンティティの遅延読み込み 遅延読み込み無効化 ライフサイクル EntityState.Add EntityState.Detached ローカルデータ(未コミットデータ) 低レベルSQLの実行 参照 プログラミング EntityFrameworkについて http //msdn.microsoft.com/ja-jp/library/bb386871%28v=vs.90%29.aspx EntityFramework 5 VisualStudio2010とVisualStudio2012に対応。 EntityFramework 5 Beta 2012年3月29日 VisualStudio11に対応。また、VisualStudio2010ではエラーが発生するため、まだ動作しない。 EntityFramework 4.3.1 2012年3月29日 インストール VisualStudioから使用する場合、VisualStudioのExtensionであるNuGetManagerを使います。 VisualStudio2010では拡張機能であるNuGetPackageManagerを導入すれば、VisualStudio内からパッケージの取得・管理を行うことができる。 EF5 NotMapped属性の仕様が変更。 バックエンドデータベース SQL Server Compact 4.0 Microsoft SQL Server Compact 4.0 は、ソフトウェア開発者が ASP.NET Web サイトの構築と Windows デスクトップ アプリケーションの作成に使用できる、無償の埋め込み型データベースです。SQL Server Compact 4.0 はコンパクトで、アプリケーション フォルダー内にバイナリ ファイルをプライベート配置することができ、Visual Studio と WebMatrix を使用してアプリケーションを簡単に開発でき、スキーマとデータを SQL Server にシームレスに移行できます。 Code Firstプログラミング Code Firstプログラミングとは、データベースを使うにあたってのデータ構造をSQLや別のツールを使ってあらかじめ構築することなく、C#のオブジェクト指向プログラミングで定義されたクラスをそのままデータ構造として使うプログラミング方法です。 EntityFrameworksでは使用するクラスを元にデータ構造を構築し、データベースの作成します。 PlainOldなクラスをデータモデルクラスに使用できる(POCOと同じ) CoC(convention over configuration) (Wikipedia 設定より規約) IDEが持つデザイナやXMLによる、マッピング記述が不必要 バックエンドのデータソースとしてSQLServerCEバージョン4.0を使用しています。 サンプルソース namespace Magic.Unicorn { public class Princess IPerson { public int Id { get; set; } public string Name { get; set; } public virtual ICollection Unicorns { get; set; } public virtual ICollection LadiesInWaiting { get; set; } } public class Unicorn { public int Id { get; set; } public string Name { get; set; } [Timestamp] public byte[] Version { get; set; } public int PrincessId { get; set; } // FK for Princess reference public virtual Princess Princess { get; set; } } public class Castle { [Key] public string Name { get; set; } public Location Location { get; set; } public virtual ICollection LadiesInWaiting { get; set; } } [ComplexType] public class Location { public string City { get; set; } public string Kingdom { get; set; } public ImaginaryWorld ImaginaryWorld { get; set; } } [ComplexType] public class ImaginaryWorld { public string Name { get; set; } public string Creator { get; set; } } public class LadyInWaiting IPerson { [Key, Column(Order = 0)] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int PrincessId { get; set; } // FK for Princess reference [Key, Column(Order = 1)] public string CastleName { get; set; } // FK for Castle reference public string FirstName { get; set; } public string Title { get; set; } [NotMapped] public string Name { get { return String.Format( {0} {1} , Title, FirstName); } } public virtual Castle Castle { get; set; } public virtual Princess Princess { get; set; } } public interface IPerson { string Name { get; } } public class UnicornsContext DbContext { public DbSet Unicorns { get; set; } public DbSet Princesses { get; set; } public DbSet LadiesInWaiting { get; set; } public DbSet Castles { get; set; } } public class UnicornsContextInitializer DropCreateDatabaseAlways { protected override void Seed(UnicornsContext context) { var cinderella = new Princess { Name = Cinderella }; var sleepingBeauty = new Princess { Name = Sleeping Beauty }; var snowWhite = new Princess { Name = Snow White }; new List { new Unicorn { Name = Binky , Princess = cinderella }, new Unicorn { Name = Silly , Princess = cinderella }, new Unicorn { Name = Beepy , Princess = sleepingBeauty }, new Unicorn { Name = Creepy , Princess = snowWhite }, //new Unicorn { Name = No Princess } // 外部関連であるPrincessを未設定にはできない。 }.ForEach(u = context.Unicorns.Add(u)); var efCastle = new Castle { Name = The EF Castle , Location = new Location { City = Redmond , Kingdom = Rainier , ImaginaryWorld = new ImaginaryWorld { Name = Magic Unicorn World , Creator = ADO.NET } }, }; new List { new LadyInWaiting { Princess = cinderella, Castle = efCastle, FirstName = Lettice , Title = Countess }, new LadyInWaiting { Princess = sleepingBeauty, Castle = efCastle, FirstName = Ulrika , Title = Lady }, new LadyInWaiting { Princess = snowWhite, Castle = efCastle, FirstName = Yolande , Title = Duchess } }.ForEach(l = context.LadiesInWaiting.Add(l)); } } public class Program { public static void Main(string[] args) { Database.SetInitializer(new UnicornsContextInitializer()); var context = new UnicornsContext(); // Many of the code fragments can be run by inserting them here } } } DbContext DbContextはEntityFrameworkをつかってバックエンドデータベースと関連付けされたDbSetを管理するクラスです。 br DbSetのインスタンスは自動的にDbContext内でオブジェクトが設定されます。このオブジェクトは再設定することはないので、後述のようなGetterプロパティのみを公開したIDbSet型のプロパティを使います。 public class UnicornsContext DbContext { public DbSet Unicorns { get; set; } public DbSet Princesses { get; set; } public DbSet LadiesInWaiting { get; set; } public DbSet Castles { get; set; } } // または、下記のようにIDbSetを使ったプロパティ public class UnicornsContext DbContext { public IDbSet Unicorns { get; set; } public IDbSet Princesses { get; set; } public IDbSet LadiesInWaiting { get; set; } public IDbSet Castles { get; set; } } ContextのDbSetオブジェクトは再設定する必要がないため、Getterプロパティのみ公開するプロパティがもっとも理想です。 Setメソッドは、DbContext.Setメソッドとして実装しており、この関数はDbSet T を返すメソッドです。 public class UnicornsContext DbContext { public IDbSet Unicorns { get { return Set(); } } public IDbSet Princesses { get { return Set(); } } public IDbSet LadiesInWaiting { get { return Set(); } } public IDbSet Castles { get { return Set(); } } } エンティティクラス 型 日付(DateTime) DateTime型のフィールドです。 Nullを指定してもよい場合は、明示的にNull許容型のDataTime型として定義しなければなりません。 public class TestEntity { // Nullは指定できない。 // また、値は必ず設定する必要がある。 public DateTime NotNullDate{get; set;} // Nullは指定可能。 // 値は設定しない場合、自動的にNullになる。 public DateTime? NullDate{get;set;} } NotNullateはNullにすることはできないため、TestEntityのオブジェクトを作成したら必ず有効な値を設定しなければなりません。 複合型フィールド シリアライズ可能なクラスを値型としてEntityFrameworksに認識させることで、1つのテーブルのフィールドとして構築することができます。 次のような場合、CastleクラスのテーブルにはLocationクラスのフィールドが含まれます。 public class Castle { [Key] public string Name { get; set; } public Location Location { get; set; } public virtual ICollection LadiesInWaiting { get; set; } } [ComplexType] public class Location { public string City { get; set; } public string Kingdom { get; set; } public ImaginaryWorld ImaginaryWorld { get; set; } } [ComplexType] public class ImaginaryWorld { public string Name { get; set; } public string Creator { get; set; } } 外部関連 Princessプロパティは自動的にPrincessIdフィールドを外部キーとして外部関連エンティティを構築します。 br Prinsessプロパティで取得できるオブジェクトは、DbContextにより外部キーによって遅延読み込みが発生し、Princessプロパティアクセス時にデータベースから値が取得されエンティティを返します。 public class Unicorn { public int Id { get; set; } public string Name { get; set; } [Timestamp] public byte[] Version { get; set; } public int PrincessId { get; set; } // FK for Princess reference public virtual Princess Princess { get; set; } } 実際のUnicornテーブルのカラムは次のようになります。 int Id byte[] Version int PrincessId モデルの階層化(TPT) http //weblogs.asp.net/manavi/archive/2010/12/28/inheritance-mapping-strategies-with-entity-framework-code-first-ctp5-part-2-table-per-type-tpt.aspx 属性 KeyAttribute[Key] モデルの主キーとなるプロパティを指定する。 StringLengthAttribute[StringLength(XXX)] MaxLengthAttribute[MaxLength(XXX)] string型の場合、フィールドの最大文字数を設定します。MinLengthは未実装? ConcurrencyCheckAttribute[ConcurrencyCheck] データ検証を有効にするプロパティにマークする。 RequiredAttribute[Required] NULLを設定できないプロパティであることをマークする。 TimestampAttribute[Timestamp] タイムスタンプ情報を格納するフィールドであることを指定する。このフィールドはモデルクラスではbyte[]でマッピングします。 ComplexTypeAttribute[ComplexType] モデルに含むことができる複合データクラスである場合に指定する。クラス定義にのみ指定可能。この属性を設定したクラスは、データベースにシリアライズ化されて保存可能となります。ただし、複合データクラスは公開プロパティにプリミティブ型か他の複合データクラスしかメンバ変数に含むことはできません。 ColumnAttribute[Column] TableAttribute[Table] テーブル作成に関する情報を設定する。Nameプロパティは、作成するテーブル名を任意のものに設定します。 InversePropertyAttribute [InverseProperty] ForeignKeyAttribute [ForeignKey] DatabaseGeneratedAttribute [DatabaseGenerated] NotMappedAttribute [NotMapped] データベースの設定 App.configやWeb.configに使用するデータベースの種類などを設定します。 br 設定項目は使用するデータベース毎に異なるため、使用するデータベースのマニュアル等を参考にします。 記述した設定情報は、DbContextのコンストラクタで指定することで使用できます。 public class UnicornsContext DbContext { public UnicornsContext() base( UnicornsCEDatabase ) // または、次のように項目名を指定した記述も可能 // base( name=UnicornsCEDatabase ) { } } エンティティの使い方 エンティティの追加 エンティティのDbSetコレクションに新しいエンティティを追加して、DbContext.SaveChanges()を呼び出すことでデータが保存(アタッチ)されます。 context.Unicorns.Add(new Unicorn { Id = -1 ,Name= bbb }); context.Unicorns.Add(new Unicorn { Name = ccc }); context.SaveChanges(); 注意点として、DbContext.SaveChanges()を呼び出していない状態でも内部的にデータが保存される段階となることを忘れてはいけません。 context.Unicorns.Add(new Unicorn { Id = -1 ,Name= bbb }); context.Unicorns.Add(new Unicorn { Name = ccc }); DumpUnicornTest(context); // 何も出力されない context.SaveChanges(); DumpUnicornTest(context); // 上で追加した2つのUnicornレコードをダンプする また、UnicornはIdがint型となっており、自動的にAutoIncrementが設定されているため、Unicornsに要素を追加した順にIdが割り振られます。 br 上記のようにIdに「-1」という設定できない値や、未設定の場合でも正常な値を割り振ります。この動作はDbContext.SaveChanges()を実行した段階で行われます。 次のコードはDbContext.SaveChanges()を呼び出す前はIDが「-1」のレコードを見つけることができるが、DbContext.SaveChanges()を呼び出した後は見つけることができません。 context.Unicorns.Add(new Unicorn { Id = -1 ,Name= bbb }); var newUnicorn = context.Unicorns.Find(-1); if(newUnicorn != null) { Console.WriteLine( Idが-1のUnicornが存在する ); } context.SaveChanges(); var newUnicorn2 = context.Unicorns.Find(-1); if(newUnicorn2 == null) { Console.WriteLine( UnicornはNULLです ); } Console.WriteLine( newUnicornのID= + newUnicorn.Id); // IDは「-1」ではなく、DbContext.SaveChanges()で割り振られた新しいIDになっている。 エンティティの削除 DbSet.Removeにエンティティを削除するオブジェクトを与えます。 context.Unicorns.Remove(context.Unicorns.Find(1)); LINQを使ったエンティティの検索方法 DbSetはそのままLINQで使用可能なコレクションとして使用できるので、次のようなLINQを記述できます。 var unicorns = from u in context.Unicorns where u.Name.StartsWith( B ) select u; エンティティのキーから検索 エンティティの主キーで検索を行う場合は、取得したいエンティティのDbSet.Findメソッドで行います。 br 複合キーを持つエンティティの場合、モデル定義時に指定したカラムの順番に引数を指定します。 var unicorn = context.Unicorns.Find(3); // ID=3のエンティティを取得する。 var castle = context.Castles.Find( The EF Castle ); // IDが文字列型の場合でも、取得できます。 var lady = context.LadiesInWaiting.Find(3, The EF Castle ); // エンティティが複合キーを定義している場合でも、可変引数を使用することで取得可能。 ジェネリックな方法でプロパティにアクセス var unicorn = context.Unicorns.Find(3); // Read the current value of the Name property string currentName1 = context.Entry(unicorn).Property(u = u.Name).CurrentValue; // 普通に「unicorn.Name」へアクセスする意味と同じ。 Console.WriteLine( Name={0} , currentName1); context.Entry(unicorn).Property(u = u.Name).CurrentValue = Franky ; // Setterも同じ。 // ◆文字列によるプロパティへのアクセスも可能。 object currentName2 = context.Entry(unicorn).Property( Name ).CurrentValue; // Getter呼び出し context.Entry(unicorn).Property( Name ).CurrentValue = Squeaky ; // Setter呼び出し エンティティのプロパティ名を指定しなくても、プロパティの名前や値を巡回できます。 var unicorn = context.Unicorns.Find(3); DbPropertyValues pvals = context.Entry(unicorn).CurrentValues; foreach(var propertyName in pvals.PropertyNames) { // すべてのプロパティをダンプ Console.WriteLine( Property {0} has value {1} , propertyName, pvals[propertyName]); // pvals[propertyName]への代入も可能。 } エンティティにComplexTypeに設定されたクラスを持つフィールドがある場合、次のような方法でアクセスが可能です。 var castle = context.Castles.Find( The EF Castle ); // CastleクラスのLocationプロパティはComplexType属性が設定されたLocationクラス var location = context.Entry(castle) .Property(c = c.Location) .CurrentValue; // locationはLocationオブジェクト var world1 = context.Entry(castle) .Property(c = c.Location.ImaginaryWorld) .CurrentValue; // この呼び出し方法ができるのは、当たり前といえば当たり前。 var world2 = context.Entry(castle) .ComplexProperty(c = c.Location) // ComplexTypeであるLocationにアクセス .Property(l = l.ImaginaryWorld) // Location.ImaginaryWordにアクセス .CurrentValue; // ComplexTypeのプロパティへアクセスする場合は、ComplexPropertyを使う。 // 前項の方法でもImaginaryWorldにアクセスできるので、わざわざComplexPropertyを使う必要はない気もする・・・。 var world3 = context.Entry(castle) .Property( Location.ImaginaryWorld ) .CurrentValue; // プロパティの指定に文字列を使う。もっとも実用的かも。 // ただし、文字列を使ってプロパティのリフレクションを取得しているハズなので、パフォーマンスはよくない。 // ComplexTypeの階層構造を遡って行く事もできる。 var creator1 = context.Entry(castle) .ComplexProperty(c = c.Location) .ComplexProperty(l = l.ImaginaryWorld) .Property(w = w.Creator) .CurrentValue; var creator2 = context.Entry(castle) .Property(c = c.Location.ImaginaryWorld.Creator) .CurrentValue; var creator3 = context.Entry(castle) .Property( Location.ImaginaryWorld.Creator ) .CurrentValue; ComplexTypeを巡回する場合、ComplexTypeはDbPropertyValuesオブジェクトなので、次のような再帰呼び出しでダンプ可能。 public static void WritePropertyValues(string parentPropertyName, DbPropertyValues propertyValues) { foreach (var propertyName in propertyValues.PropertyNames) { var nestedValues = propertyValues[propertyName] as DbPropertyValues; // propertyNameが Location のプロパティはComplexTypeなので、DbPropertyValuesオブジェクトとなる。 if (nestedValues != null) { WritePropertyValues(parentPropertyName + propertyName + . , nestedValues); } else { Console.WriteLine( Property {0}{1} has value {2} , parentPropertyName, propertyName, propertyValues[propertyName]); } } } using (var context = new UnicornsContext()) { var castle = context.Castles.Find( The EF Castle ); WritePropertyValues( , context.Entry(castle).CurrentValues); } 関連 関連エンティティの積極的読み込み Includeを使って外部関連しているプロパティを同時に読み込むことができます。 var princesses1 = context.Princesses .Include(p = p.Unicorns) .ToList(); // Include()を使うと、Pricessの読み込み時に同時に関連するUnicornのを読み込みます。 var princesses2 = context.Princesses .Include( Unicorns ) .ToList(); // Includeにはプロパティ名を文字列で指定することもできる。 もちろん、積極的に外部関連エンティティを読みこまなくても遅延読み込みによってデータが読み込まれます。 関連エンティティの遅延読み込み 外部関連エンティティへのアクセス時にエンティティのデータをデータベースから読み込むことを遅延読み込みといいます。 EntityFrameworksで関連エンティティを遅延読み込み可能にするには、プロパティをvirtualで定義します。 public class Princess { public int Id { get; set; } public string Name { get; set; } public virtual ICollection Unicorns { get; set; } // 遅延読み込み可能 } 遅延読み込み無効化 すべての遅延読み込みが行われなくなります。 public class UnicornsContext DbContext { public UnicornsContext() { this.Configuration.LazyLoadingEnabled = false; } } ライフサイクル EntityState Added IDをまだ持っていないエンティティ。SaveChanges()ではInsert処理が行われ、キーカラムがAutoIncrement属性を持ったテーブルの場合、自動的にIDが作成され割り振られる。 Deleted Detached DbContextで管理されていないエンティティ。 Modified Unchanged DbContextにアタッチ済みのエンティティ。フィールド値の変更がない状態。 Detachedなオブジェクトも、DbSet.Attach()を使ってDbContextにアタッチしたオブジェクトとして使用することが可能です。 br もしくは、直接エンティティのStateをUnchangedに設定する方法が使えます。 var u = new Unicorn { Id = 1, Name = アタッチしました }; Console.WriteLine( Status= + context.Entry(u).State); // Detached context.Unicorns.Attach(u); // 推奨方法 // context.Entry(u).State = EntityState.Unchanged // ↑Stateに直接代入しても同じ効果を得られる。 Console.WriteLine( Status= + context.Entry(u).State); // Unchanged context.SaveChanges(); このとき、SaveChanges()の呼び出しによりId=1のレコードは更新されるため、上記のコードのUnicornはNameが「アタッチしました」に更新されてしまいます。 EntityState.Add このステータスを設定したエンティティは、SaveChanges()で新規レコードとしてテーブルに追加されます。 using (var context = new UnicornsContext()) { var unicorn = new Unicorn { Name = Franky , PrincessId = 1}; context.Entry(unicorn).State = EntityState.Added; // ライフサイクルステータスを「Added」に設定。 //context.Unicors.Add(unicorn); // 内部でStateをEntityState.Addedに設定している。 context.SaveChanges(); // Addedのエンティティを新規データとして処理する } 新規追加しようとするエンティティのキーフィールドに値が入っててもよい。 br キーのフィールド属性がAutoIncrementを設定してある場合は、自動的にIdを設定します。 Idがすでにデータベースに存在する場合、SaveChanges()でエラーが発生します。 using (var context = new UnicornsContext()) { var unicorn = new Unicorn { Id=1, Name = Franky , PrincessId = 1}; // すでに「Id=1」がデータベースに存在するとする。 context.Entry(unicorn).State = EntityState.Added; context.SaveChanges(); // 例外発生 // Id=1がすでにデータベースに存在するので、 // EntityState.Addedを設定したエンティティをテーブルに追加しようとして失敗する。 } EntityState.Detached DbContextで管理していないエンティティはすべてこのステータスとなります。 データベースに存在するキーを設定しても、エンティティのオブジェクトがDbContextで管理されていない(アタッチしていない)ため、EntityState.Detachedとなります。 var u1 = new Unicorn { Name = Toshiva }; Console.WriteLine( Status= + context.Entry(u1).State); // EntityState.Detached var u2 = new Unicorn { Id = 1, Name = LG }; // Id=1はデータベースに存在する Console.WriteLine( Status= + context.Entry(u2).State); // EntityState.Detached DbContextから切り離されたエンティティオブジェクトは外部参照のトラッキングは行いません。 var u1 = context.Unicorns.Find(1); Console.WriteLine(u1.Princess); // Princessを自動的に取得する var u2 = context.Unicorns.Find(2); context.Entity(u2).State = System.Data.EntityState.Detached; Console.WriteLine(u1.Princess); // Princessを自動的に取得できないため、Nullを返す。 ローカルデータ(未コミットデータ) DbContextが管理するエンティティはSaveChangedが呼び出されるまでデータベースに保存されません(永続化されない)。 このような永続化前のDbContextが持つデータをローカルデータと呼びます。 context.Unicorns.Load(); // Unicornすべてを読み込み context.Unicorns.Add(new Unicorn { Name = Linqy }); // 新しいUnicornを追加 // ただし、永続化はまだ行われていない。 context.Unicorns.Remove(context.Unicorns.Find(1)); // Unicornを削除 // ただし、永続化はまだ行われていない。 // ◆ローカルデータのダンプ Console.WriteLine( In Local ); foreach (var unicorn in context.Unicorns.Local) { Console.WriteLine( Found {0} {1} with state {2} , unicorn.Id, unicorn.Name, context.Entry(unicorn).State); } // ◆ 永続化済みデータのダンプ Console.WriteLine( In DbSet query ); foreach (var unicorn in context.Unicorns) { Console.WriteLine( Found {0} {1} with state {2} , unicorn.Id, unicorn.Name, context.Entry(unicorn).State); } In Local Found 0 Linqy with state Added Found 2 Silly with state Unchanged Found 3 Beepy with state Unchanged Found 4 Creepy with state Unchanged In DbSet query Found 1 Binky with state Deleted Found 2 Silly with state Unchanged Found 3 Beepy with state Unchanged Found 4 Creepy with state Unchanged 低レベルSQLの実行 SQLを直接実行することができます。 var unicorns = context.Unicorns.SqlQuery( select * from Unicorns ).ToList(); // Unicornクラスのオブジェクトを取得(エンティティ) var unicornNames = context.Database.SqlQuery( select Name from Unicorns ).ToList(); // エンティティ以外も取得可能。 // この場合、戻り値はstring型を要素に持つコレクションとなる。 context.Database.ExecuteSqlCommand( update Unicorns set Name = Franky where Name = Beepy ); // SELECT以外のSQLはExecuteSqlCommand()を使う。 参照 Using DbContext in EF4.1 EF4.1の使い方。EF4.3でも基本は同じ。 Walkthrough 既存のDBからのマイグレーション方法を解説したブログポスト。
https://w.atwiki.jp/gohongilab2/pages/99.html
tags Lakhani_K_R Linux Panetta_J_A case innovation OSS url auther Lakhani, K. R. and Panetta, J. A. bibtex @article{LakhaniPanetta2007principles, title={The principles of distributed innovation}, author={Lakhani, Karim R and Panetta, Jill A}, journal={Innovations technology, governance, globalization}, volume={2}, number={3}, pages={97--112}, year={2007}, publisher={MIT Press} } included in format for references APA Lakhani, K. R., Panetta, J. A. (2007). The principles of distributed innovation. Innovations technology, governance, globalization, 2(3), 97-112. CIRIEC Japan Lakhani, K.R. and Panetta, J.A. [2007] 「The principles of distributed innovation」『Innovations technology, governance, globalization』2巻3号, pp. 97--112 abstract commentary keyword/ key-term memo pp. 107 Inviting “outsiders” to participate in the innovation process naturally implies a different orientation towards issues of openness and intellectual property (IP). The traditional road to innovation, which is paved in secrecy and walled off to competitors and customers and emphasizes the accumulation of a large IP portfolio, would clearly not be effective in a distributed innovation setting in which participation is invited from many individuals. In such settings, individuals and especial- ly organizations must be comfortable with the requisite degree of openness in the innovation process and adjust IP policies to encourage greater sharing and reuse of knowledge and expertise. There is no standard approach to evolving towards open innovation. The degree to which openness and creativity can be accommo- dated by IP is dependent on the context of operation and norms of the communi- ty industrial setting and business model. cited as
https://w.atwiki.jp/handsrecs/pages/34.html
Zend Framework Zend Framework 開発環境 DB接続 : Zend_Db Hello Zend FrameWork Zend_Controller Action Controller 主な機能 リクエストパラメータの取得方法 リクエストがPOSTであるか? フォワードの仕方 セッション 開発環境 ダウンロードするhttp //framework.zend.com/download/current/ プロジェクトフォルダ以下のような構成で作成する -プロジェクトルート -application(任意) アプリ用フォルダ -public_html(任意) web公開ルートフォルダ ダウンロードファイルを解凍し「library」フォルダのみプロジェクトフォルダにコピーする。最終的には以下のようになる。 -プロジェクトルート -library Zend Frameworkライブラリ -application(任意) アプリ用フォルダ -public_html(任意) web公開ルートフォルダ web公開用フォルダに以下の「.htaccess」ファイルを作成する RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] 「public_html」にindex.htmlを作成する ?php // インクルードパスにZend Frameworkを設定する ini_set( include_path , ini_get( include_path ) . PATH_SEPARATOR . ../library ); require_once "Zend/Loader.php"; Zend_Loader LoadClass( Zend_Controller_Front ); Zend_Controller_Front run( ../application/controllers ); // パスは環境によって合わせる ? DB接続 : Zend_Db ※Win版 xampp 1.7.0を使っている場合、MySQLのPDOライブラリDLLに不具合があるためselect文を発行しようとすると失敗する場合がある。 ■解決方法 最新版のxamppを入れる2009.05.19現在(xampp1.7.1) 「libmysql.dll」ライブラリDLLを変更する以下のディレクトリの「libmysql_5.0.51a.dll」を「libmysql.dll」に名前を変更して上書きする※apacheを停止して行う /apache/bin/ /php/ Hello Zend FrameWork Zend_Controller Action Controller 主な機能 リクエストパラメータの取得方法 リクエストがPOSTであるか? $this- getRequest()- isPost() フォワードの仕方 // action アクション名 // controller コントロール名 // module モジュール名 // params パラメータ配列 $this- _forward( action , controller , module , params); セッション Zend Frameworkでは、「Zend_Session」ライブラリのクラスを使用して、セッション管理をすることが推奨されている。 PHP の session_start()関数とZend_Sessionを両方使用すると予期せぬ動作を起こす。 #ref_list
https://w.atwiki.jp/akatonbowiki/pages/13578.html
このページはこちらに移転しました unco.html 作詞/627スレ222 踏んじゃった踏んじゃったクソミソ やっちゃったやっちゃったムカつく トッポいあの娘も踏んじゃった ああ、なんだか行けそうなきがする ウンコドットエッチテーエムエルノートン先生大激怒だお
https://w.atwiki.jp/jacoby/pages/10.html
○シゴタノ http //cyblog.jp/ ○idea hacks http //ryu2net.typepad.jp/idea_hacks/ ○GTD 仕事を成し遂げる技術 http //hpcgi1.nifty.com/spen/index.cgi?%A3%C7%A3%D4%A3%C4 ○Schedule Watcher http //www.geocities.jp/sako_software/sw45.htm ○yamamoworks http //www.yamamoworks.net/gcmg/ ○「著書から学ぶ」読書 http //homepage3.nifty.com/OFFICESEVEN/ ○「netvoice」読書 http //www.netvoice.jp/ ○日経ビジネスヘルプ http //skill.nikkei.co.jp/ ○情熱大陸 http //www.mbs.jp/jounetsu/ ○ワークスタイルメモ http //www.ariel-networks.com/blogs/tokuriki/
https://w.atwiki.jp/nanparenaidouraku/pages/8.html
動画(youtube) @wikiのwikiモードでは #video(動画のURL) と入力することで、動画を貼り付けることが出来ます。 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_209_ja.html また動画のURLはYoutubeのURLをご利用ください。 =>http //www.youtube.com/ たとえば、#video(http //youtube.com/watch?v=kTV1CcS53JQ)と入力すると以下のように表示されます。
https://w.atwiki.jp/elvis/pages/4375.html
Digital Technical Journal Digital Press? DigitalPress? undefined undefined Alcohol Abuse and Child Abuse Great Lakes Training Associates? Bob Ackerman? GreatLakesTrainingAssociates? BobAckerman? Substores-UnknownASINs-35 Formats-Audiocassettes-General? Sports Level I (Reading Power Modules Level I) Educational Developmental Laboratories? EducationalDevelopmentalLaboratories? Substores-UnknownASINs-35 Subjects-Children sBooks? The Permanent Debt System How the Third World Can Save Itself Black Rose Books Ltd? Jacques B. Gelinas? Arnold Bennett? BlackRoseBooksLtd? JacquesB.Gelinas? ArnoldBennett? Substores-UnknownASINs-35 Subjects-Nonfiction-SocialSciences-Sociology-General? Perspectives on Power Reflections on Human Nature and the Social Order Black Rose Books Ltd? Noam Chomsky? BlackRoseBooksLtd? NoamChomsky? Substores-UnknownASINs-35 Subjects-Nonfiction-Philosophy-Political? Subjects-Nonfiction-Politics-General? Hellfire Recorded Books? Diana Gabaldon? TBA? RecordedBooks? DianaGabaldon? TBA? Substores-UnknownASINs-35 Subjects-History? Who Invented the Automobile Skulduggery at the Crossroads Black Rose Books Ltd? David Beasley? BlackRoseBooksLtd? DavidBeasley? Substores-UnknownASINs-35 Subjects-Nonfiction-Automotive-Industry? True to Himself Indypublish.Com? Edward Stratemeyer? Indypublish.Com? EdwardStratemeyer? Substores-UnknownASINs-35 Subjects-Literature&Fiction-General-Classics? Subjects-Literature&Fiction-GenreFiction-Action&Adventure? Using C-Kermit Communication Software for Unix, Vms, Os/2, Aos/Vs, Os-9, Amiga, Atari st Digital Pr? Frank Da Cruz? Christine M. Gianone? DigitalPr? FrankDaCruz? ChristineM.Gianone? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-General? Subjects-Computers&Internet-Software? Subjects-Computers&Internet-Programming-General? Subjects-Engineering? Subjects-Professional&Technical-Engineering? Environmental History A Concise Introduction (New Perspectives on the Past) Blackwell Pub? I. G. Simmons? BlackwellPub? I.G.Simmons? Substores-UnknownASINs-35 Subjects-History-World? Subjects-Nonfiction-SocialSciences-HumanGeography? Subjects-Nonfiction-SocialSciences-Sociology-Culture? Subjects-Outdoors&Nature-Environment? Subjects-Science-Nature&Ecology-Environment? Direction of Trade Statistics. Yearbook, 1988/Covering Years 1981-1987 (Direction of Trade Statistics Yearbook) Intl Monetary Fund? IntlMonetaryFund? undefined undefined The Metrix Computer Networks and Conferencing Systems Worldwide Digital Pr (E)? John Quaterman? DigitalPr(E)? JohnQuaterman? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-Networks? Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-General? Subjects-Computers&Internet-CertificationCentral-Subjects-Networking? Subjects-Computers&Internet-CertificationCentral-General? Subjects-Computers&Internet-General? Viper Pinnacle Books (Mm)? Mark Bouton? PinnacleBooks(Mm)? MarkBouton? Substores-UnknownASINs-35 Subjects-Literature&Fiction? Town and Country, Or, Life at Home and Abroad Indypublish.Com? John S. Adams? Indypublish.Com? JohnS.Adams? Substores-UnknownASINs-35 Subjects-Literature&Fiction-General-Classics? Windows Nt Server Clusters Digital Equipment Corp? Gary Mauler? DigitalEquipmentCorp? GaryMauler? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-General? Subjects-Computers&Internet-Microsoft-OperatingSystems-Windows-General? Introduction to Open Vms Digital Pr (E)? Lesley Ogilvie Rice? DigitalPr(E)? LesleyOgilvieRice? Substores-UnknownASINs-35 Subjects-Computers&Internet-OperatingSystems-General? Subjects-Computers&Internet-General? Open Vms and the Internet Digital Pr? Terence P. Sherlock? DigitalPr? TerenceP.Sherlock? Substores-UnknownASINs-35 Subjects-Computers&Internet-OperatingSystems-General? Subjects-Computers&Internet-General? Subjects-Computers&Internet-Home&Office-Internet? Open Vms Performance Management Digital Pr (E)? Joginder Sethi? DigitalPr(E)? JoginderSethi? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-General? Subjects-Computers&Internet-OperatingSystems-General? Monitoring Microsoft Exchange Digital Pr (E)? Wayne Laflamme? James Pringle? Julia L. Roesner? Barbara Moatz? Sonia Garcia? DigitalPr(E)? WayneLaflamme? JamesPringle? JuliaL.Roesner? BarbaraMoatz? SoniaGarcia? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-LAN? Subjects-Computers&Internet-General? Subjects-Computers&Internet-Home&Office-Internet-Networking? Modern Programming With Digital Visual Fortran Digital Pr (E)? Walt Brainerd? Dick Hendrickson? DigitalPr(E)? WaltBrainerd? DickHendrickson? Substores-UnknownASINs-35 Subjects-Computers&Internet-WebDevelopment-Scripting&Programming-General? Subjects-Computers&Internet-Programming-General? Subjects-Computers&Internet-GraphicDesign-General? Digital Visual Fortran Programmer's Guide Digital Pr? Michael Etzel? Karen Dickinson? DigitalPr? MichaelEtzel? KarenDickinson? Substores-UnknownASINs-35 Subjects-Computers&Internet-Software-Design&Development-SoftwareDevelopment? Subjects-Computers&Internet-Programming-General? Subjects-Computers&Internet-Programming-Languages&Tools-Fortran-General? Xml for E-Commerce Application Developers Business-To-Business Transactions, Integration and Infrastructure Digital Pr (E)? Rajan Venkitachalam? DigitalPr(E)? RajanVenkitachalam? Substores-UnknownASINs-35 Subjects-Business&Investing-Industries&Professions-MIS? Subjects-Business&Investing-Industries&Professions-E-commerce-General? Subjects-Business&Investing-Marketing&Sales? Subjects-Computers&Internet-Business&Culture-E-commerce? Subjects-Computers&Internet-Databases-SpecificDatabases-Oracle-General? Subjects-Computers&Internet-Databases-General? Subjects-Computers&Internet-Hardware-Peripherals? Subjects-Computers&Internet-General? Subjects-Professional&Technical-BusinessManagement-Management&Leadership-InformationManagement? Subjects-Professional&Technical-BusinessManagement-Marketing&Sales? King Sugar Jamaica, the Caribbean and the World Sugar Industry Black Rose Books Ltd? Michelle Harrison? BlackRoseBooksLtd? MichelleHarrison? Substores-UnknownASINs-35 Subjects-Business&Investing-General? Subjects-Business&Investing-Industries&Professions-General? OpenVMS File System Internals Butterworth-Heinemann Ltd? Brian Schenkenberger? Butterworth-HeinemannLtd? BrianSchenkenberger? Substores-UnknownASINs-35 Subjects-Computers&Internet-Databases-General? OpenVMS Performance Management Digital Press? Hein VanKoelen? Joginder Sethi? Hein van Koelen? DigitalPress? HeinVanKoelen? JoginderSethi? HeinvanKoelen? undefined undefined King Sugar Jamaica, the Caribbean and the World Sugar Industry Black Rose Books Ltd? Michelle Harrison? BlackRoseBooksLtd? MichelleHarrison? Substores-UnknownASINs-35 Subjects-Business&Investing-Economics-Agricultural? Subjects-Business&Investing-General? Subjects-Business&Investing-Industries&Professions-General? Subjects-Business&Investing-International-General? Subjects-Nonfiction-Economics-Agricultural? Subjects-Professional&Technical-Accounting&Finance-Economics-Agricultural? Subjects-Science-AgriculturalSciences-General? Subjects-Science-AgriculturalSciences-Economics? Naked Wanderlust A Novel with Poems and Photographs 1stBooks Library? Katerina Philippou? 1stBooksLibrary? KaterinaPhilippou? Substores-UnknownASINs-35 Subjects-Literature&Fiction-General-Contemporary? Tales of the Iron Road My Life As King of the Hobos Paragon House? Maury Graham? Robert J. Hemming? ParagonHouse? MauryGraham? RobertJ.Hemming? Substores-UnknownASINs-35 Subjects-Biographies&Memoirs-General? Subjects-Nonfiction-SocialSciences-Sociology-General? Subjects-Nonfiction-SocialSciences-Sociology-SocialGroups? Subjects-Nonfiction-Transportation-Railroads-General? Japanese History and Culture from Ancient to Modern Times Seven Basic Bibliographies Markus Wiener Pub? John W. Dower? Timothy S. George? MarkusWienerPub? JohnW.Dower? TimothyS.George? ユーズドブック(洋書)-History? Substores-UnknownASINs-35 Subjects-History-Asia-Japan? Subjects-Reference-Publishing&Books-Bibliographies&Indexes-History? Linux Security For Large-Scale Enterprise Networks (The Hp Technology Series) Digital Pr? Jamieson Becker? DigitalPr? JamiesonBecker? Substores-UnknownASINs-35 Subjects-Computers&Internet-WebDevelopment-Security&Encryption? Subjects-Computers&Internet-General? Subjects-Law-General? Subjects-Nonfiction-Law-General? Subjects-Professional&Technical-Law-General? Odyssey of a Public Intellectual Andr Gorz in Perspective Black Rose Books Ltd? Levy? BlackRoseBooksLtd? Levy? Substores-UnknownASINs-35 Subjects-Business&Investing-Economics? Subjects-History-Europe-France-General? Subjects-Nonfiction-Politics-History&Theory? Subjects-Nonfiction-Economics? Subjects-Professional&Technical-Accounting&Finance-Economics? The Commonwealth of Life Black Rose Books Ltd? Peter G. Brown? BlackRoseBooksLtd? PeterG.Brown? Substores-UnknownASINs-35 Subjects-Business&Investing-Economics-International? Subjects-Business&Investing-Economics-Theory? Subjects-Nonfiction-Economics-International? Subjects-Nonfiction-Economics-Theory? Subjects-Professional&Technical-Accounting&Finance-International-Economics? Subjects-Professional&Technical-Accounting&Finance-Economics-Theory? The Richest Girl in the World The Extravagant Life and Fast Times of Doris Duke Pinnacle Books (Mm)? Stephanie Mansfield? PinnacleBooks(Mm)? StephanieMansfield? Substores-UnknownASINs-35 Subjects-Biographies&Memoirs-General? Subjects-Biographies&Memoirs-Historical-UnitedStates-General? Subjects-Biographies&Memoirs-Leaders&NotablePeople-Rich&Famous? Subjects-Biographies&Memoirs-SpecificGroups-Women? Let's Grow a Garden Jb Communication? Gyo Fujikawa? JbCommunication? GyoFujikawa? Substores-UnknownASINs-35 Subjects-Children sBooks-Baby-3? Betty Bear's Birthday Jb Communication? Gyo Fujikawa? JbCommunication? GyoFujikawa? undefined undefined Final Cut Dreams and Disaster in the Making of Heaven's Gate Dove Entertainment Inc? Steven Bach? Roddy McDowall? DoveEntertainmentInc? StevenBach? RoddyMcDowall? undefined undefined Open Vms Troubleshooting Butterworth-Heinemann Ltd? Bruce Ellis? Butterworth-HeinemannLtd? BruceEllis? Substores-UnknownASINs-35 Subjects-Computers&Internet-Networking-Networks,Protocols&APIs-General? Unknown to History Indypublish.Com? Charlotte Mary Yonge? Indypublish.Com? CharlotteMaryYonge? Substores-UnknownASINs-35 Subjects-Literature&Fiction-General-Contemporary? Beauty of Delaware Lta/Renaissance Pub Co? James Michael Fagan? Robert D. Shangle? Lta/RenaissancePubCo? JamesMichaelFagan? RobertD.Shangle? Substores-UnknownASINs-35 Subjects-Travel-UnitedStates-States-Delaware? Beauty of Delaware Lta/Renaissance Pub Co? James Michael Fagan? Lta/RenaissancePubCo? JamesMichaelFagan? Substores-UnknownASINs-35 Subjects-Arts&Photography-Photography-Nature&Wildlife? Subjects-Travel-UnitedStates-States-Delaware? Battletech Blueprints Fasa? Fasa? undefined undefined Introduction to Parallel Algorithms and Architectures Algorithms and Blsi Morgan Kaufmann Pub? Thomson F. Leighton? MorganKaufmannPub? ThomsonF.Leighton? Substores-UnknownASINs-35 Subjects-Computers&Internet-Hardware-SystemArchitecture-ParallelComputing? Subjects-Science-Mathematics-General? House Marik Fasa? Fasa? undefined undefined Alternative to Globalization A Better World Is Possible Black Rose Books Ltd? Dorval Brunelle? BlackRoseBooksLtd? DorvalBrunelle? Substores-UnknownASINs-35 Subjects-Business&Investing-Biographies&Primers-Policy&CurrentEvents? Subjects-Business&Investing-Economics-Development&Growth? Subjects-Business&Investing-Economics-EconomicPolicy&Development? Subjects-Business&Investing-General? Subjects-Nonfiction-Politics-General? Subjects-Nonfiction-Politics-International-Diplomacy? Subjects-Nonfiction-Politics-Globalization? Subjects-Nonfiction-Economics-Development&Growth? Subjects-Nonfiction-Economics-EconomicPolicy&Development? Subjects-Professional&Technical-Accounting&Finance-Economics-Development&Growth? Subjects-Professional&Technical-Accounting&Finance-Economics-EconomicPolicy&Development? Alternative to Globalization A Better World Is Possible Black Rose Books Ltd? Dorval Brunelle? BlackRoseBooksLtd? DorvalBrunelle? Substores-UnknownASINs-35 Subjects-Business&Investing-Biographies&Primers-Policy&CurrentEvents? Subjects-Business&Investing-Economics-Development&Growth? Subjects-Business&Investing-Economics-EconomicPolicy&Development? Subjects-Business&Investing-General? Subjects-Nonfiction-Politics-General? Subjects-Nonfiction-Politics-International-Diplomacy? Subjects-Nonfiction-Politics-Globalization? Subjects-Nonfiction-Economics-Development&Growth? Subjects-Nonfiction-Economics-EconomicPolicy&Development? Subjects-Professional&Technical-Accounting&Finance-Economics-Development&Growth? Subjects-Professional&Technical-Accounting&Finance-Economics-EconomicPolicy&Development? Palimpsest A Documentary History of South African History Markus Wiener Pub? Ibn Batutta? MarkusWienerPub? IbnBatutta? undefined undefined Led Astray (Silhouette Series) Harlequin Books (Mm)? Sandra Brown? HarlequinBooks(Mm)? SandraBrown? Substores-UnknownASINs-35 Subjects-Literature&Fiction-General-Contemporary? Subjects-Romance-Contemporary-General? How to Make Your Own Professional Lock Tools Loompanics Unlimited? Eddie the Wire? LoompanicsUnlimited? EddietheWire? undefined undefined People of the Snow The Story of Kitimat Nc Pr? John Kendrick? NcPr? JohnKendrick? undefined undefined The Unknown Guest Indypublish.Com? Maurice Maeterlinck? Indypublish.Com? MauriceMaeterlinck? Substores-UnknownASINs-35 Subjects-Religion&Spirituality-NewAge-General? Subjects-Religion&Spirituality-Occult-UnexplainedMysteries? Subjects-Religion&Spirituality-ReligiousStudies-ControversialKnowledge? Substores-UnknownASINs-35 洋書
https://w.atwiki.jp/enthu/pages/26.html
D1 GRAND PRIX SERIES S15 GT2835PRO仕様 2004 KEI-OFFICE D1 SILVIA S15 2004 RE雨宮レーシング D1 RX-7 2004 Z33 RB26 K5-660R 仕様 2004 BLITZ D1 SKYLINE ER34 2004 TOP SECRET D1 SILVIA S15 2004 HKS GENKI RACING PERFORMER IS220-R 2004 OPTION STREAM Z 2004
https://w.atwiki.jp/ugomemohp/pages/12.html
コメントプラグイン @wikiのwikiモードでは #comment() と入力することでコメントフォームを簡単に作成することができます。 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_60_ja.html たとえば、#comment() と入力すると以下のように表示されます。 名前 コメント
https://w.atwiki.jp/akbdata/pages/1119.html
読み ハニーワークス Wikipedia https //ja.wikipedia.org/wiki/HoneyWorks 公式サイト http //honeyworks.jp 提供リスト 2016年12月7日 大嫌いなはずだった。(HoneyWorks meets さゆりんご軍団 + 真夏さんリスペクト軍団 from 乃木坂46) 作詞 作曲 編曲 大嫌いなはずだった。(ノーカウント) 2018年10月17日 Want you! Want you!(=LOVE 4th single) 作詞 作曲 共編曲 アイカツハッピーエンド